<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/styles.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/pace-theme-flash.css" />
	
  <script>
    paceOptions = {
      elements: true
    };
  </script>
  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/pace.min.js"></script>
  <script>
    function load(time){
      var x = new XMLHttpRequest()
      x.open('GET', "" + time, true);
      x.send();
    };

    load(20);
    load(100);
    load(500);
    load(2000);
    load(3000);

    setTimeout(function(){
      Pace.ignore(function(){
        load(3100);
      });
    }, 4000);

    Pace.on('hide', function(){
      console.log('done');
    });

  </script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
</head>
<body>

	<?php
	$currController 	= Yii::app()->controller->id;
	$currControllers	= explode('/', $currController);
	$currAction			= Yii::app()->controller->action->id;
	$currRoute 			= Yii::app()->controller->getRoute();
	$currRoutes			= explode('/', $currRoute);

	$this->widget('bootstrap.widgets.TbNavbar', array( 
		'type'=>null, // null or 'inverse'
		'brand'=>CHtml::encode(Yii::app()->name),
		//'brandUrl'=>'#',
		'brandOptions'=>array('class'=>'logo'),
		'collapse'=>true, // requires bootstrap-responsive.css
		'items'=>array(
			array(
				'class'=>'bootstrap.widgets.TbMenu',
				'items'=>array(
						array('label'=>'Beranda', 'url'=>array('/site/index'), 'icon'=>'fa fa-home','active'=>($currRoute=='site/index')),
						array('label'=>'Services', 'icon'=>'fa fa-star-o', 'url'=>array('/site/page', 'view'=>'services'), 'items'=>array(
						array('label'=>'Maid/PRT', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'pembantu')),
						array('label'=>'Baby Sitter', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'baby_sitter')),
						array('label'=>'Nany', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'nany')),
						array('label'=>'Perawat Lansia', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'perawat_lansia')),
						array('label'=>'Gardener/Tukang Kebun', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'tukang_kebun')),
						array('label'=>'Driver/Supir', 'icon'=>'fa fa-check-square-o', 'url'=>array('/site/page', 'view'=>'driver')),
						'---',
						array('label'=>'Tautan Cepat'),
						array('label'=>'Syarat Majikan', 'icon'=>'fa fa-info-circle', 'url'=>array('/site/page', 'view'=>'syarat_majikan')),
						array('label'=>'Pemesanan', 'icon'=>'fa fa-paste', 'url'=>array('/site/order')),
					)),
						array('label'=>'Tentang Kami', 'icon'=>'fa fa-bookmark', 'url'=>array('/site/page', 'view'=>'tentang_kami')),
						array('label'=>'Hubungi Kami', 'icon'=>'fa fa-envelope', 'url'=>array('/site/contact')),
						array('label'=>'Administrator', 'url'=>'#', 'icon'=>'fa fa-shield', 'visible'=>Yii::app()->user->checkAccess('rights'), 'active'=>($currControllers[0]=='administrator' or $currRoutes[0]=='rights') ,'items'=>array(
							array('label'=>'Generator Code', 'url'=>array('/gii'), 'icon'=>'fa fa-gear', 'visible'=>Yii::app()->user->checkAccess('rights')),
							array('label'=>'Mengelola Akses', 'url'=>array('/rights'), 'icon'=>'fa fa-lock', 'visible'=>Yii::app()->user->checkAccess('rights')),
							array('label'=>'Mengelola Admin', 'url'=>array('/administrator/admin'), 'icon'=>'fa fa-users', 'visible'=>Yii::app()->user->checkAccess('rights')),
							array('label'=>'Mengelola Pembantu', 'url'=>array('/administrator/employee'), 'icon'=>'fa fa-users', 'visible'=>Yii::app()->user->checkAccess('rights')),
							//'---',
							//array('label'=>'NAV HEADER'),
						)),
						array('label'=>'Training', 'url'=>'#', 'icon'=>'fa fa-trophy', 'visible'=>!Yii::app()->user->isGuest, 'active'=>($currRoutes[0]=='latihan') ,'items'=>array(
							array('label'=>'Manage Training', 'url'=>array('/latihan/training'), 'icon'=>'fa fa-', 'visible'=>!Yii::app()->user->isGuest),
						)),	
												
				),
			),
			//'<form class="navbar-search pull-left" action="">
				//<input type="text" class="search-query span2" placeholder="Search" id="main-search">
			//</form>',
			array(
				'class'=>'bootstrap.widgets.TbMenu',
				'htmlOptions'=>array('class'=>'pull-right'),
				'items'=>array(
					array('label'=>'Login', 'url'=>array('/site/login'), 'icon'=>'fa fa-sign-in', 'visible'=>Yii::app()->user->isGuest),
					//'---',
					array('label'=>'', 'url'=>'#', 'icon'=>'fa fa-user', 'visible'=>!Yii::app()->user->isGuest, 'items'=>array(
						array('label'=>'Account', 'url'=>array('/site/account'), 'icon'=>'fa fa-key','visible'=>!Yii::app()->user->isGuest),
						array('label'=>'Profile', 'url'=>array('/site/profile'), 'icon'=>'fa fa-user','visible'=>!Yii::app()->user->isGuest),
						'---',
						array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'icon'=>'fa fa-power-off',),
		
					)),
				),
			),
		),
	));
	?>


<div class="container" id="page">

	<?php 
	if(isset($this->breadcrumbs)){
		$this->widget('bootstrap.widgets.TbBreadcrumbs', array(
		    'links'=>$this->breadcrumbs,
		));
	}	
	?>

	<?php echo $content; ?>
	<div class="clear"></div>

	<div id="footer">
		<div class="container">
			<div class="row">
				<div class="span4"><img src="<?php echo Yii::app()->baseUrl; ?>/images/logo3.png"></div>
				<div class="span4">
				<h1 class="widget-title">Tentang Kami</h1>
							<p>
							Pramuwisma.com adalah partner Anda dalam mencari, memilih dan menemukan Asisten Rumah Tangga dan tenaga kerja lain yang tepat, sesuai dengan kebutuhan rumah tangga Anda. Kami mendidik serta menyalurkan seperti:<br>							
							[<a href="<?php echo Yii::app()->baseUrl; ?>/site/page/?view=tentang_kami"> Read More </a>]</p>
				</div>
				<div class="span4">
					<h1 class="widget-title">Hubungi Kami</h1>
                        	<div class="contact-widget">
				<i class="fa fa-home fa-2x"></i>
                                <p>Komplek Ruko Silagati No. A2, Jalan Pasar Kecapi No. 99A, Bekasi 17414.</p>

                                <div class="clearfix"></div>
                                <i class="fa fa-phone fa-2x"></i>
                               <p>Phone: 021 8960-6000. <br/>Blackberry: 28149D3B</p>
                            <div class="clearfix"></div>

				</div>
			</div>
		</div>
		<p>Copyright &copy; <?php echo date('Y'); ?> by <a href="<?php echo Yii::app()->baseUrl; ?>"><?php echo CHtml::encode(Yii::app()->name); ?></a>.</p>
		

		
	</div><!-- footer -->

</div><!-- page -->


</body>
</html>